package com.platform.coreentity.entities;

import com.platform.coreentity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * describe:页面元素表
 *
 * @author rainly
 * @date 2019/07/23
 * @time 14:30
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name = "sys_element", schema = "platform")
public class SysElementEntity extends BaseEntity {
    @GenericGenerator(name = "uuid2" ,strategy = "org.hibernate.id.UUIDHexGenerator")
    @GeneratedValue(generator = "uuid2")
    @Id
    @Column(length = 50, name = "elementid")
    private String elementId;

    /**
     * 元素编码
     */
    @Column(length = 50, name = "element_code",columnDefinition = "varchar(50) COMMENT '元素编码'")
    private String elementCode;
}
